import { Entity, PrimaryGeneratedColumn } from "typeorm";
import { Code, CreateDate, Name, RichText, Title, UpdateDate } from "../utils";


@Entity({
    name: 'ks_page'
})
export class KsPage {
    @PrimaryGeneratedColumn()
    id: number;

    @Name()
    package_name: string;

    @Name()
    activity_name: string;

    @Code()
    hash: string;

    @RichText()
    html: string;

    @CreateDate()
    create_date: Date;

    @Code()
    device_uuid: string;

    @UpdateDate()
    update_date: Date;

    @Title({ default: '' })
    title: string;

    @Name({ default: `` })
    name: string;
}
